x = -pi:0.0001:pi;

y = goalSeekRot(x);

h = plot(x,y);
set(h(1), "linewidth", 2); 
grid;

ylabel('Velocidade angular de Goal Seek (rad/s)');
xlabel('gamma (rad)');

printf('max wgs: %fº/s\n', max(y) * 180 / pi)
printf('min wgs: %fº/s\n', min(y) * 180 / pi)
